package APE.Flux;

import java.io.*;
import java.net.*;
import java.util.*;


public class EnvoiType extends Thread{
	
	public static void main(String[] args) {
		
		 try {
	          Socket soc = new Socket("147.171.79.178", 8020);
	         
	         
	          OutputStream o = soc.getOutputStream();
	          ObjectOutput s = new ObjectOutputStream(o);
	          System.out.println("envoi!");
	          s.writeObject	("toto");
	          s.writeObject(123);
	          s.writeObject((float)1.2);

	          s.flush(); 
	          s.close();
	          soc.close();
	      } catch (Exception e) {
	          System.out.println(e.getMessage());
	          System.out.println("Client erreur de serialization");
	          System.exit(1);
	      }
		
	}

}
